-- GENERATED SPELL FOR [Liquid Pyrite] --


function spell0_33189(pUnit, Event) --@Liquid Pyrite,Self--
pUnit:FullCastSpellOnTarget(62494,pUnit)
pUnit:RegisterEvent('Sorts_33189', 522, 1)
end

function spell1_33189(pUnit, Event) --@Liquid Pyrite,n/a--
pUnit:FullCastSpellOnTarget(62496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33189', 679, 1)
end

function Sorts_33189(pUnit, Event)
local choix_sorts_33189 = math.random(0, 1)
if choix_sorts_33189 == 0 then
pUnit:RegisterEvent('spell0_33189', 1, 1)
end
if choix_sorts_33189 == 1 then
pUnit:RegisterEvent('spell1_33189', 1, 1)
end
end

function mob33189_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33189', math.random(1500, 3000), 1)
end

function mob33189_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33189_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33189_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33189, 1, 'mob33189_Action')
RegisterUnitEvent(33189, 2, 'mob33189_Leave')
RegisterUnitEvent(33189, 3, 'mob33189_Kill')
RegisterUnitEvent(33189, 4, 'mob33189_Die')
